/*
 * @Author: zeki mini
 * @Date: 2020-08-03 14:14:16
 * @LastEditors: 汪滔
 * @LastEditTime: 2021-07-02 11:28:46
 * @Description: file information
 */
import { fetchGet, fetchPost } from '../config';
// 用户管理
export default {
  listDefContentCate(params) {
    return fetchGet('authority-api/defContentCate/listDefContentCate', params);
  },
  pageDefContentInfo(params) {
    return fetchGet('authority-api/defContentInfo/pageDefContentInfo', params);
  },
  getMember(params) {
    return fetchGet('user-api/api/v1/member/getMember', params);
  },
  findDefContentInfo(params) {
    return fetchGet('authority-api/defContentInfo/findDefContentInfo', params);
  },
  getLastVersion(params) {
    return fetchGet('authority-api/deployApp/getLastVersion', params);
  },
  getTextProtol(params) {
    return fetchGet('filereso-api/defContentInfo/getDefContentInfoByCode', params);
  },
  getMemberContent(params) {
    return fetchGet('user-api/api/v1/member/getMemberContent', params);
  },
  getDefContentInfoListByCode(params) {
    return fetchGet('authority-api/defContentInfo/getDefContentInfoListByCode', params);
  },
  queryValidCodeInfoWithQRCode(params) {
    return fetchGet('order-api/api/v1/order/validCode', params);
  },
  queryConfirmWriteOffWithOrderID(params) {
    return fetchGet('order-api/api/v1/order/confirmWriteOff', params);
  },
  querryValidCodeAuth(params) {
    return fetchGet('user-api/api/v1/user/getUserAuth', params);
  },
  pageDefHomeContentInfo(params) {
    return fetchGet('authority-api/defContentInfo/pageDefHomeContentInfo', params);
  },
  // //  最新隐私协议查询
  // getContentInfoListByCode(params) {
  //     return fetchPost(`authority-api/defContentInfo/getContentInfoListByCode`, params)
  // },
  //  最新隐私协议查询
  getContentInfoListByCode(params) {
    return fetchPost('filereso-api/agreement/getAgreementList', params);
  },
};
